package com.ws.operator;
/*
赋值运算符
=
+=
-=
/=
*=
%=
 */
public class AssignmentTest {

    public static void main(String[] args) {

        int number1 = 10;
        int number2;
        int number3 = 4;

        number2 = number1;
        System.out.println(number2);

        int result1 = number1-=number3;
        System.out.println(result1); //6

        number1 = 10;
        number3 = 4;
        number1 += number3;
        System.out.println(number1); //14

    }
}
